import request from '@/utils/request'

// 查询资产工单列表
export function listMyFlow(query) {
  return request({
    url: '/asset/flow/my',
    method: 'get',
    params: query
  })
}


// 查询资产工单列表
export function selectFlow(query) {
  return request({
    url: '/asset/flow/select',
    method: 'get',
    params: query
  })
}

// 新增资产工单
export function addFlow(data) {
  return request({
    url: '/asset/flow',
    method: 'post',
    data: data
  })
}


// 查询资产工单详细
export function getFlow(id) {
  return request({
    url: '/asset/flow/' + id,
    method: 'get'
  })
}

// 查询工单流程列表
export function selectFlowType(query) {
  return request({
    url: '/asset/flowType/select',
    method: 'get',
    params: query
  })
}

// 查询审核流程列表
export function listMyCheck(query) {
  return request({
    url: '/asset/flowCheck/my',
    method: 'get',
    params: query
  })
}

// 查询审核流程详细
export function getFlowCheck(id) {
  return request({
    url: '/asset/flowCheck/' + id,
    method: 'get'
  })
}

// 单个审核
export function checkFlow(data) {
  return request({
    url: '/asset/flowCheck/check',
    method: 'post',
    data: data
  })
}